﻿@model dynamic
@{

}
<div class="bjui-pageContent">
    <form id="frmEdit" method="post" action="/sys/menu/editajax" class="datagrid-edit-form" data-toggle="validate" data-data-type="json">
        <input type="hidden" class="mini-hidden" name="menu_id" value="@Model.data.menu_id" />
        <table border="0" cellpadding="1" cellspacing="2" style="width:100%;table-layout:fixed;">
            <tr>
                <td width="100px;"><label for="parent_id">父菜单:</label></td>
                <td><input class="mini-treeselect" url="/sys/Menu/GetAllMenus" style="width:100%" textField="name" valueField="menu_id" parentField="parent_id" name="parent_id" value="@Model.data.parent_id" showFolderCheckBox="true" multiSelect="false" allowInput="true" /></td>
            </tr>
            <tr>
                <td><label for="name">菜单名:</label></td>
                <td><input class="mini-textbox" type="text" name="name" value="@Model.data.name" style="width:100%" /></td>
            </tr>

            <tr>
                <td><label for="permission">权限标识:</label></td>
                <td><input class="mini-textbox" type="text" name="permission" value="@Model.data.permission" style="width:100%" /></td>
            </tr>
            <tr>
                <td><label for="icon">图标:</label></td>
                <td>
                    <input class="mini-textbox" name="icon" value="@Model.data.icon" style="width:100%" />
                </td>
            </tr>
            <tr>
                <td><label for="url">链接:</label></td>
                <td><input class="mini-textbox" type="text" name="url" value="@Model.data.url" style="width:100%" /></td>
            </tr>
            <tr>
                <td><label for="sort">排序:</label></td>
                <td><input class="mini-textbox" type="text" name="sort" value="@Model.data.sort" style="width:100%" /></td>
            </tr>
            <tr>
                <td><label for="menu_type">菜单类型:</label></td>
                <td>
                    <select class="mini-combobox" name="menu_type" value="@Model.data.menu_type" style="width:100%">
                        <option value="0">普通菜单</option>
                        <option value="1">按钮</option>
                        <option value="2">权限</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><label for="js_method">按钮Js方法:</label></td>
                <td>
                    <input class="mini-textbox" type="text" name="js_method" id="js_method" value="@Model.data.js_method" style="width:100%" />
                </td>
            </tr>
            <tr>
                <td><label for="menu_position">菜单位置:</label></td>
                <td>
                    <select class="mini-combobox" name="menu_position" value="@Model.data.menu_position" style="width:100%">
                        <option value="0">后台菜单</option>
                        <option value="1">经销商菜单</option>
                        <option value="2">店面菜单</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><label for="menu_status">状态:</label></td>
                <td>
                    <select class="mini-combobox" name="menu_status" value="@Model.data.menu_status" style="width:100%">
                        <option value="0">显示</option>
                        <option value="1">隐藏</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><label for="remark">备注:</label></td>
                <td><input class="mini-textarea" type="text" name="remark" value="@Model.data.remark" /></td>
            </tr>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>

    </ul>
</div>
 